//
//  YHY_DataBaseTool.h
//  Travels
//
//  Created by yanghuiyan on 16/3/17.
//  Copyright © 2016年 yanghuiyan. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "CPYMVModel.h"
@interface YHY_DataBaseTool : NSObject

+ (instancetype)shareDataBase;

//打开数据库
- (void)openDataBase;

//关闭数据库
- (void)closeDataBase;

/*****************TravelNotes*****************/

//创建
- (void)createDetailModelTable;

//插入
- (void)insertCPYMVModelIntoTable:(CPYMVModel *)mvModel;

//查询所有
- (NSMutableArray *)selectCPYMVModelTable;

//判断是否有此页数据
//- (BOOL)selectDataBase:(NSString *)idNew WithName:(NSString *)name WithFront_cover_photo_url:(NSString *)front_cover_photo_url;
//- (BOOL)selectDataBase:(NSString *)name withUrl:(NSString *)url withId:(NSString *)Id;
- (BOOL)selectDataBase:(NSString *)url;
//删除
- (void)deleteCPYMVModelTable:(NSString *)url;

//删除表
- (void)dropCPYMVModelTable;

@end
